﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class LoaiDocGiaService
    {
        public static List<LoaiDocGiaDTO> LayDanhSachLoaiDocGia()
        {
            LoaiDocGiaRepository LDGRep = new LoaiDocGiaRepository();
            return LDGRep.LayDanhSachLoaiDocGia();

        }
        public static void Them(LoaiDocGiaDTO LoaiDGDTO)
        {
            LoaiDocGiaRepository rep = new LoaiDocGiaRepository();
            rep.Them(LoaiDGDTO);
        }

        public static LoaiDocGiaDTO LayThongTinLoaiDocGia(int maLoaiDG)
        {
            LoaiDocGiaDTO loaiDGDTO = new LoaiDocGiaDTO();
            try
            {
                LoaiDocGiaRepository loaiDGRep = new LoaiDocGiaRepository();
                loaiDGDTO = loaiDGRep.LayThongTinLoaiDocGia(maLoaiDG);

            }
            catch (System.Exception)
            {

            }
            return loaiDGDTO;
        }
    }
}
